package io;

import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;

public class OISDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis=new FileInputStream("kk.obj");
        ObjectInputStream osi=new ObjectInputStream(fis);
        Object obj=osi.readObject();
        Student zs=(Student)obj;
        System.out.println(zs);
        ArrayList<String>s=new ArrayList<>();
    }

}
